package com.os.lambda.chapter3;

import com.os.lambda.chapter5.Member;

import java.util.List;

public class Artist {

    private String areaName;
    private String name;
    private List<Member> members;
    private Boolean isSolo;

    public Boolean getSolo() {
        return isSolo;
    }

    public void setSolo(Boolean solo) {
        isSolo = solo;
    }

    public List<Member> getMembers() {
        return members;
    }

    public void setMembers(List<Member> members) {
        this.members = members;
    }

    public Artist(String areaName, String name) {
        this.areaName = areaName;
        this.name = name;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isFrom(String area){
        if(area.equals(areaName)){
            return true;
        }else{
            return false;
        }
    }
}
